﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="sign-in.aspx.cs" Inherits="car_insurance_sign_in" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpHeader" runat="Server">
    <div class="grey-bg-login top20">
        <div class="radius-box-login">
            <div class="login-heading">
                <asp:Label runat="server" ID="lblUserLoginTitle" Text="<%$Resources:Master,SignIn%>" /></div>
            <div style="width:400px;">
                <asp:Label ID="lblMessage" runat="server"></asp:Label>
                <asp:ValidationSummary ID="vsCustomer" runat="server" ValidationGroup="customer"
                    ShowSummary="True" HeaderText="<%$ Resources:General,RequiredValidation%>" CssClass="error-msg" />
            </div>
            <asp:TextBox runat="server" ID="txtExEmail" CssClass="login-detail-fields"></asp:TextBox>
            <cc1:TextBoxWatermarkExtender ID="tbwExEmail" runat="server" TargetControlID="txtExEmail"
                WatermarkCssClass="login-detail-fields" WatermarkText="<%$Resources:General,EnterEmail%>">
            </cc1:TextBoxWatermarkExtender>
            <asp:RequiredFieldValidator ID="rfvExEmail" runat="server" ControlToValidate="txtExEmail"
                Display="Dynamic" ErrorMessage="" ValidationGroup="customer" CssClass="validationError"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="revExEmail" runat="server" ControlToValidate="txtExEmail"
                ErrorMessage="" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                ValidationGroup="customer" CssClass="validationError"></asp:RegularExpressionValidator>
            <asp:TextBox ID="txtExAuthCode" runat="server" MaxLength="20" CssClass="login-detail-fields"
                onkeypress="ChangeTextMode();" onkeyup="ChangeTextMode();"></asp:TextBox>
            <cc1:TextBoxWatermarkExtender ID="tbwExAuthCode" runat="server" TargetControlID="txtExAuthCode"
                WatermarkCssClass="login-detail-fields" WatermarkText="<%$Resources:General,EnterPassword%>">
            </cc1:TextBoxWatermarkExtender>
            <asp:RequiredFieldValidator ID="rfvExAuthCode" runat="server" ControlToValidate="txtExAuthCode"
                Display="Dynamic" ErrorMessage="" Text="" ValidationGroup="customer" CssClass="validationError"></asp:RequiredFieldValidator>
            <div>
                <asp:HyperLink runat="server" ID="hplForgotPassword" NavigateUrl="" CssClass="log-in-links"> <%=GetGlobalResourceObject("General", "ForgotPassword")%></asp:HyperLink></div>
            <div style="padding-right: 30px;">
                <asp:Button ID="btnLogin" Text="<%$ Resources:Master,SignIn%>" runat="server" CssClass="action-button"
                    OnClick="btnLogin_Click" ToolTip="<%$ Resources:Master,SignIn%>" ValidationGroup="customer"
                    OnClientClick="LoadValidationErrorCss();if (Page_ClientValidate('customer')){this.removeAttribute('onmouseout');this.removeAttribute('onmouseup');this.className = 'action-button-processing';}" />
                <br />
                <asp:Label ID="lblLoginMessage" runat="server" Font-Bold="true" ForeColor="Red"></asp:Label>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        function ChangeTextMode() {
            if (document.getElementById('<%= txtExAuthCode.ClientID %>').value != null) {
                document.getElementById('<%= txtExAuthCode.ClientID %>').type = 'password';
            }
            else {
                document.getElementById('<%= txtExAuthCode.ClientID %>').type = '';
            }
        }
    </script>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cpBody" runat="Server">
</asp:Content>
